package tgc.edu.tms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

import tgc.edu.tms.custom.BaseEntity;
@Entity
public class Permission extends BaseEntity<Integer>{
	private String name;
	private String code;
	
	@Column(unique=true,nullable=false)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(unique=true,nullable=false)
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Permission() {
		super();
	}
	public Permission(Integer id, Boolean isUsed) {
		super(id, isUsed);
	}
	public Permission(Integer id) {
		super(id);
	}
	
	
}
